package online.sanen.mhdt.entity.equip;

import online.sanen.mhdt.RandomeTool;
import online.sanen.mhdt.entity.attr.DEF;

/**
 * 衣服
 */
public abstract class Clothes extends Equip{
    protected DEF def;
    /**
     * 装备属性取值范围
     */
    protected int minDef;
    protected int maxDef;

    public Clothes() {
    }

    @Override
    protected void initBaseAttr() {
        def=new DEF(RandomeTool.equipBaseAttr(minDef,maxDef));
    }

    @Override
    public String toString() {
        return "Clothes{" +
                "def=" + def +
                ", minDef=" + minDef +
                ", maxDef=" + maxDef +
                '}';
    }

    public DEF getDef() {
        return def;
    }

    public void setDef(DEF def) {
        this.def = def;
    }

    public int getMinDef() {
        return minDef;
    }

    public void setMinDef(int minDef) {
        this.minDef = minDef;
    }

    public int getMaxDef() {
        return maxDef;
    }

    public void setMaxDef(int maxDef) {
        this.maxDef = maxDef;
    }
}
